package atom.core3.j2ee.privilege.bean;

import atom.core0.exception.BizSysException;
import atom.core0.object.ObjectUtil;


public class LoginSessionInfo implements java.io.Serializable
{
	private String ssokey;
	private String loginId;//WebResource
	private Object objectBytes;
	private String limitId;//WebResource


	public Object getObjectBytes()
    {
    	return objectBytes;
    }
	public void setObjectBytes(Object objectBytes)
    {
    	this.objectBytes = objectBytes;
    }
	public String getLimitId()
    {
    	return limitId;
    }
	public void setLimitId(String limitId)
    {
    	this.limitId = limitId;
    }
	public Object getSSOObject() throws BizSysException
    {
		if (objectBytes==null)
			return null;
		byte[] bytes = (byte[])objectBytes;
		Object object  = ObjectUtil.bytes2Object(bytes);
    	return object;
    }
	
	public String getLoginId()
    {
    	return loginId;
    }
	public void setLoginId(String loginId)
    {
    	this.loginId = loginId;
    }	

	

	
	public LoginSessionInfo(String key, String loginId)
	{
		super();
		ssokey = key;
		this.loginId = loginId;

	}
	public LoginSessionInfo()
	{
		super();
	}
	

	
	public String getSsokey()
	{
		return ssokey;
	}
	public void setSsokey(String ssokey)
	{
		this.ssokey = ssokey;
	}



}
